
# {{{ file ident ---------------------------------------------------------------

# __IDENT__( "@(#) $Id: CMakeLists.txt 40 2012-05-19 08:46:05Z nsouchon-dico@altern.org $" )

# }}} --------------------------------------------------------------------------
# {{{ min required, used packages ----------------------------------------------

cmake_minimum_required( VERSION 2.6 )

# include( CTest )
# enable_testing()

find_package( Ns        REQUIRED )
find_package( Qt4 
	COMPONENTS 
		QtCore 
		QtGui 
		QtNetork 
		QtDesigner 
		QtDesignerComponents 
	REQUIRED )

# }}} --------------------------------------------------------------------------
# {{{ ns_set_debug() -----------------------------------------------------------

ns_set_debug()

# }}} --------------------------------------------------------------------------
# {{{ ns_warning_is_error() ----------------------------------------------------

ns_warning_is_error()

# }}} --------------------------------------------------------------------------
# {{{ compile defines ----------------------------------------------------------

add_definitions( 
	"-D\"__IDENT__(var,str)=static const char * const ident_\\#\\#var __attribute__(( section( \\\"comment\\\" ) )) = str\""
	)

# }}} --------------------------------------------------------------------------
# {{{ ns_project( DICODOR ) ----------------------------------------------------

ns_project( DICODOR )

# }}} --------------------------------------------------------------------------
# {{{ targets ------------------------------------------------------------------
# }}} --------------------------------------------------------------------------
# {{{ .dicodor -----------------------------------------------------------------

ns_target( dicodor 
	OUTNAME         dicodor                    / # 
	TYPE            EXE                        / # 
	DESTINATION     EXE                        / # 
	VERSION         1.0.0                      / # 
	DEFINES         QT_USE_QSTRINGBUILDER      / # 
	INCLUDES        ${NAME_SOURCE_DIR}         / # because of ui_orthowindow.h 
	TRANSLATIONS                                 # 
		FROM        .                            # 
		TO_TS       i18n/dicodor                 # 
		TO_QM       dicodor                      # 
		LANG        fr it                        # 
		/                                        # 
	MODULES                                      # 
		config                                   # 
		tools                                    # 
		preferences                              # 
		messages                                 # 
		ortho                                    # 
		textedit                                 # 
		mainwindow                               # 
		dicodor                                  # 
		main                                     # 
		/                                        # 
	)                                            # 

# }}} --------------------------------------------------------------------------

